package com.heima.model.admin.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class AdUserDto {

    @NotBlank(message = "用户名不能为空")
    private String name;

    @NotBlank(message = "密码不能为空")
    @Length(min = 6,max = 20,message = "密码长度必须在6~20位之间")
    private String password;
}
